package com.example.datachange.client;

import com.example.datachange.model.WorkOrderDetailResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(name = "feignsClient", url = "http://www.zhou.com:8094/epoi")
@RequestMapping("/inspection/progress")
public interface FeignsClient {

    @PostMapping(value = "/workorder/detail/{id}")
    WorkOrderDetailResult test(@PathVariable("id") String id);

    @PostMapping(value = "/workorder/detail/{id}", headers = {"ip=10.244.201.198", "token=NiR7x74s0/L+JorS43FJP/qcBm3Jqb6gxOfz+ipG1m+ag+Cea0vFx6Raf0k4/AEKXXSfs+zKQ+/lPgXFOcY0+HTfpeuobgZ0njATylzt3tPAPLdWMxZbErixuRHQk8+NT8sS"})
    WorkOrderDetailResult header(@PathVariable("id") String id);

}
